package cn.luyou.admin.service;

import cn.luyou.admin.entity.ExamRecordDetail;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface ExamRecordDetailService extends IService<ExamRecordDetail> {
    
    // 保存考试记录详情
    void saveRecordDetails(Long recordId, Map<Long, String> answers, Map<Long, Integer> questionScores);
    
    // 获取考试记录详情
    List<ExamRecordDetail> getRecordDetails(Long recordId);
    
    // 获取错题列表
    List<ExamRecordDetail> getWrongQuestions(Long userId);
    
    // 删除考试记录详情
    void deleteRecordDetails(Long recordId);
} 